package com.xieyunjie.config;

import com.xieyunjie.domain.Person;
import org.springframework.context.annotation.Bean;

//@Configuration  //相当于创建一个spring的xml文件
public class JavaConfigB {

    @Bean  //相关于xml里面<bean id="user" name="user" class="com.sxt.domain.User"  >
    public Person getPerson() {
        return new Person(2, "小明-person", "武汉");
    }

}
